package org.qqcui.designpattern.patterns.builder.traditional;


/**
 * 建造房子的抽象类
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/4/24 17:41
 **/
public abstract class AbstractHouse {

    /**
     * 打地基
     */
    protected abstract void buildBasic();

    /**
     * 砌墙
     */
    protected abstract void buildWalls();

    /**
     * 封顶
     */
    protected abstract void roofed();

    public void build() {
        buildBasic();
        buildWalls();
        roofed();
    }
}
